package com.zhangpu.feign.controller;

import com.zhangpu.feign.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhangpu
 * @License: (C) Copyright hualala.com Corporation Limited.
 * @Contact: zhangpu@hualala.com
 * @Date: 2021.07.19 19:46
 * @Version: 1.0
 * @Description: 这个是基于service层进行调用
 * @ProjectName: spring-cloud-eureka
 */

@RestController
public class NoIntefaceController {

    @Autowired
    private FeignService feignService;

    @GetMapping("/noIntefaceHi")
     public String hi(@RequestParam("name") String name){
        return feignService.getInfo(name);
    }
}